package csc.daonjpa.java.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Card extends BaseInfo implements Serializable  {
	
	public static String MASTER = "MASTER";
	public static String VISA = "VISA";
	
	@Id
	private String idCard;
	
	@Column(name="cardType")
	private String cardType;
	
	@ManyToOne
	@JoinColumn(name="id_customer")
	private Customer cutomer;

	/**
	 * @return the idCard
	 */
	public String getIdCard() {
		return idCard;
	}

	/**
	 * @param idCard the idCard to set
	 */
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	/**
	 * @return the cardType
	 */
	public String getCardType() {
		return cardType;
	}

	/**
	 * @param cardType the cardType to set
	 */
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	/**
	 * @return the cutomer
	 */
	public Customer getCutomer() {
		return cutomer;
	}

	/**
	 * @param cutomer the cutomer to set
	 */
	public void setCutomer(Customer cutomer) {
		this.cutomer = cutomer;
	}
}
